.word-header {
  padding: 5px 20px;
  //background: #f8f9ff;
  display: flex;
  justify-content: space-between;

}

.word {
  font-size: 1rem;
  font-weight: bold;
  display: inline-flex;
  color: #5b9f60;
  background-color: #dbeadf;
  padding: 10px;
  border-radius: 20px;
}

.word-display {
  display: inline-flex;
  align-items: center;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-color);
  margin: 0 20px;
}

.word-display:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: #e6f7ff;
}
/* 主内容区 */
.main-content {
  display: flex;
  flex-direction: column;
  //gap: 16px;
}

.image-card {
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

.question-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.hint-text {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 8px 0;
}

/* 拼写输入区 */
.spelling-inputs {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}

.spelling-box {
  width: 48px;
  height: 48px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  background: white;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.spelling-box-filled {
  width: 48px;
  height: 48px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  background: white;
  margin: 0 4px;
  transition: all 0.3s ease;
  border-color: #1EB7D8;
  box-shadow: 0 2px 8px rgba(30, 183, 216, 0.2);
}

.spelling-box-error {
  width: 48px;
  height: 48px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  background: white;
  margin: 0 4px;
  transition: all 0.3s ease;
  border-color: #F44336;
  background-color: rgba(244, 67, 54, 0.1);
}

/* 删除按钮 */
.delete-section {
  display: flex;
  justify-content: center;
  margin-top: -8px;
}

.delete-btn {
  color: #666;
  font-size: 14px;
}

/* 字母池 */
.letter-pool-card {
  border: none;
 // border-radius: 16px;
  //margin-bottom: 80px;
}

.letter-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.letter-btn:not(.disabled):active {
  transform: scale(0.95);
}

.letter-btn-disabled {
  opacity: 0.5;
    width: 100%;
  height: 48px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: rotate(-5deg);
}

.check-btn {
  height: 50px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.check-btn.active {
  box-shadow: 0 4px 12px rgba(90, 158, 96, 0.3);
}

/* 反馈弹窗 */
.feedback-modal {
  text-align: center;
  padding: 16px 0;
}

.feedback-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feedback-icon.success {
  color: #4CAF50;
}

.feedback-icon.error {
  color: #F44336;
}

.feedback-title {
  margin-bottom: 8px;
  font-size: 20px;
}

.feedback-title.success {
  color: #4CAF50;
}

.feedback-title.error {
  color: #F44336;
}

.feedback-message {
  color: #666;
  margin-bottom: 12px;
  line-height: 1.5;
}

.chinese-meaning {
  color: #1EB7D8;
  font-size: 16px;
  font-weight: 500;
}

/* 单词列表弹窗 */
.words-modal {
  max-height: 60vh;
  overflow-y: auto;
}

.word-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #5A9E60;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.word-item-content {
  display: flex;
  flex-direction: column;
}

.word-text {
  font-weight: bold;
  font-size: 16px;
}

.word-chinese {
  color: #1EB7D8;
  font-size: 14px;
  margin-top: 2px;
}

.actions {
  padding: 0 20px 15px;
  display: flex;
  justify-content: space-around;
}

.word-image {
  border-radius: 8px;
}

.list-modal {
  max-width: 400px;
  max-height: 80vh;
  padding: 25px 20px 8px;
  --border-radius: 24px;
}

.list-content {
  .list-title {
    text-align: center;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .header-title {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .word-list {
    margin-top: 15px;

    .word-item {
      padding: 12px 15px;
      border-radius: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      border: 1px solid #f0f0f0;
    }

    .word-item-current {
      padding: 12px 15px;
      border-radius: 12px;
      margin-bottom: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      border: 1px solid #f0f0f0;
      background-color: #5a9e6033;
      border-color: #5a9e604d;
    }

    .word-inco {
      color: #ddd;
    }

    .word-inco-current {
      color: #1EB7D8;
    }


  }

  .close-button {
    display: block;
    margin: 1.5rem auto 0;
    border-radius: 9999px;
    background-color: #f3f4f6;
    font-weight: 700;

  }
}

.continue-button {
  height: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 20px;
  background: #8cbb90;
  width: 45%;
  //background: linear-gradient(to right, rgb(41 155 89), rgb(69 123 92));
  //background: linear-gradient(to bottom, rgb(207 255 234), rgb(241 255 248));
  border: none;
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(255, 126, 95, 0.3);
  transition: all 0.3s ease;
}

.continue-button:disabled {
  background: #f0f0f0;
  color: #bfbfbf;
  box-shadow: none;
  cursor: not-allowed;
}

.continue-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(255, 126, 95, 0.4);
}


/* 动画效果 */
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

@keyframes popIn {
  0% { transform: scale(0.8); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.shake {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.pop-in {
  animation: popIn 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .spelling-box {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  
  .letter-btn {
    height: 42px;
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .spelling-game {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .question-image {
    height: 250px;
  }
}